# 2022/1/25 11:23
# PyCharm

import json

def response_pulic(response):
    stauts_code = response.status_code
    res_body = json.loads(response.content)
    print("返回response status_code:", stauts_code)
    print("返回response content.code:", res_body)

    assert  stauts_code == 200
    assert  res_body.get("code") == 0

def all_response_great(data,valiue):
    assert data.get("code") == valiue

